package com.thyme.content.feignclient.fallback;

import com.thyme.content.domain.dto.user.UserDTO;
import com.thyme.content.feignclient.CenterUserFeignClient;
import org.springframework.stereotype.Component;

/**
 * @author thyme
 * @ClassName UserCenterFeignClientFallback
 * @Description TODO
 * @Date 2019/11/13 15:30
 */
@Component
public class UserCenterFeignClientFallback implements CenterUserFeignClient {
    @Override
    public UserDTO findById(Integer id) {
        // 自己处理业务逻辑
        UserDTO userDTO = new UserDTO();
        userDTO.setWxNickname("一个默认用户");
        return userDTO;
    }
}
